From ca64b2bb8026fb4510696736d2d887e21ac2bfa3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 Jan 2024 21:15:53 +0000 Subject: Zero out GC children with explicit memory stores --- ...ompiler.testing.snapshots.Snapshotter)].expected | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index d6376954..f1e57c98 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -21,6 +21,27 @@ Instructions: (local-store (local "tupleElement__1__0") (local "c")) (local-store (local "tupleElement__0__0") (local "b")) (call (local "tuplePointer__0") "shed__runtime__gc_alloc" ((int-const (byte-size-of (struct ((struct (data-ptr int int32 int32)) (struct (int int int)))))) (int32-const (byte-offset-of (struct ((struct (data-ptr int int32 int32)) (struct (int int int)))) (1))) (int32-const 3))) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct ((struct (data-ptr int int32 int32)) (struct (int int int)))) + offset=(1 0) + value=(int-const 0) + ) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct ((struct (data-ptr int int32 int32)) (struct (int int int)))) + offset=(1 1) + value=(int-const 0) + ) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct ((struct (data-ptr int int32 int32)) (struct (int int int)))) + offset=(1 2) + value=(int-const 0) + ) ( memory-store pointer=(local "tuplePointer__0") -- cgit v1.2.3